package top.idetect.client.modules.cloth.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import top.idetect.client.config.LocalDateStringConverter;

/**
 * <p>
 * 
 * </p>
 *
 * @author wjh
 * @since 2024-03-15
 */
@Getter
@Setter
@ApiModel(value = "Flaw对象", description = "")
public class Flaw implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ExcelProperty(value = "卷号")
    @ApiModelProperty("序列号")
    private String clothSerial;

    @ExcelProperty(value = "相机序号")
    private Integer cameraId;

    @ExcelProperty(value = "缺陷类型")
    private String classStr;

    @ExcelProperty(value = "长度")
    private Double realLen;

    @ExcelProperty(value = "面积")
    private Double realArea;

    @ExcelProperty(value = "X轴坐标")
    private Double realPosX;

    @ExcelProperty(value = "Y轴坐标")
    private Double realPosY;

    @ExcelIgnore
    private Double pnt;

    @ExcelIgnore
    private String imgData;

    @ExcelIgnore
    private String imgDataThumbnail;

    @ExcelProperty(value = "创建时间", converter = LocalDateStringConverter.class)
    @ApiModelProperty("创建时间")
    private LocalDateTime timestamp;

    @ApiModelProperty("新版时间戳")
    private String timestampNew;


}
